﻿using S.EarTag.Domain.Dto;
using S.EarTag.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.EarTag.Infrastructure.Repository.Interface.IEarTagRepository
{
    /// <summary>
    /// 育种称重
    /// </summary>
    public interface IBreedingWeighRepository:IBaseRepository<BreedingWeigh>
    {
        Task<(IEnumerable<QueryResult> items, int totalCount, int pageCount)> BreedingList(string? startDate, string? endDate, string? EarTag, int WeighCategory, int VarietyEnum, int Sex, int page, int size);
        //添加
        Task<bool> AddBreeding(BreedingWeigh breeding);
        //修改
        Task<bool> UpdateBreeding(BreedingWeigh breeding);
        //删除
        Task<bool> DeleteBreeding(int weighId);
        //批量添加
        Task<bool> BatchAddBreedingWeigh(List<BreedingWeigh> model);

    }
}
